//
//  Base.h
//  IHKApp
//
//  Created by calvin on 15/4/7.
//  Copyright (c) 2015年 www.ihk.cn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"


@interface Base : NSObject


+ (void)getData:(NSString *)serverUrl
  useParameters:(NSMutableDictionary *)paras
        success:(void (^)(NSDictionary *dic))success
           fail:(void (^)(NSError *error))fail;


+ (void)postData:(NSString *)serverUrl useParameters:(NSMutableDictionary *)paras success:(void (^)(NSDictionary *result))success fail:(void (^)(NSError *error))fail;

@end
